from flask import Blueprint
from app.api.v1 import book, user, client, token, gift


def create_blueprint_v1():
    """
    创建v1蓝图
    :return:
    """
    # 实例化蓝图
    bp_v1 = Blueprint('v1', __name__)
    # 导入红图并注册到蓝图
    user.api.register(bp_v1)
    book.api.register(bp_v1)
    client.api.register(bp_v1)
    token.api.register(bp_v1)
    gift.api.register(bp_v1)
    return bp_v1
